package io.github.talelin.latticy.controller.api;


import io.github.talelin.latticy.model.NoticeDO;
import io.github.talelin.latticy.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @author generator@lms
* @since 2021-04-20
*/
@RestController
@RequestMapping("/api/notice")
public class NoticeApiController {
    @Autowired
    private NoticeService noticeService;

    @GetMapping("")
    public NoticeDO get() {
        //只有一条公告是写死的
        return noticeService.getById(1);
    }

}
